package com.woniu.user.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.woniu.common.dto.RechargeOrderDto;
import com.woniu.common.util.ResponseData;
import com.woniu.user.pojo.TUser;

import java.math.BigDecimal;

/**
* @author 91211
* @description 针对表【t_user(用户表)】的数据库操作Service
* @createDate 2024-05-19 14:34:07
*/
public interface TUserService extends IService<TUser> {

    /**
     * 用户登录
     */
    ResponseData<TUser> login(String username, String pwd);

    /**
     * 根据电话查找用户
     * @param phone
     * @return
     */
    ResponseData<TUser> getByPhone(String phone);



    /**
     * 增加话费
     * @param
     */
    ResponseData<TUser> updatePhoneBill(RechargeOrderDto rechargeOrderDto);



    ResponseData<?> getAppUserInfo(String token);



    ResponseData<?> deletePhoneBill(String phone);

}
